#pragma once

#include "IMsgSplitter.h"

class CMsgSpliter : public IMsgSplitter
{
#define MAX_BUFFER 1024*100
public:
	CMsgSpliter() { m_nLen = 0; }

public:
	//extract message from buffer
	MSG_BASE* ExtractMsg();

	int RecvData(SOCKET sock);

private:
	char m_szBuf[MAX_BUFFER];//unable to handle large message
	int m_nLen;
};

